<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script src="./myvue.js"></script>
    <script>
        const vm = new Myvue({
            data: {
                test: 1,
                foo: {
                    bar: 4
                }
            }
        })
        // console.log(vm.$data.n)
        setTimeout(()=>{
            vm.$data.test = 2
            vm.$data.foo.bar = 44
            setTimeout(()=>{
                vm.$data.test = 22
            })
        },1000)
    </script>
</body>
</html>